package net.osweb.crm.modules.event.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Bizscheduledtask entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "event_bizscheduledtask")
public class BizscheduledTask implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 5944907451803399245L;
	private Integer id;
	private Integer userid;
	private Timestamp executetime;
	private String tasktype;

	// Constructors

	/** default constructor */
	public BizscheduledTask() {
	}

	/** full constructor */
	public BizscheduledTask(Integer userid, Timestamp executetime,
			String tasktype) {
		this.userid = userid;
		this.executetime = executetime;
		this.tasktype = tasktype;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "executetime", length = 19)
	public Timestamp getExecutetime() {
		return this.executetime;
	}

	public void setExecutetime(Timestamp executetime) {
		this.executetime = executetime;
	}

	@Column(name = "tasktype")
	public String getTasktype() {
		return this.tasktype;
	}

	public void setTasktype(String tasktype) {
		this.tasktype = tasktype;
	}

}